package one.stand.event;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.context.ApplicationEvent;

@Data
@EqualsAndHashCode(callSuper = true)
public class CompanyLicenseRefuseEvent extends ApplicationEvent {
    /**
     * Create a new ApplicationEvent
     */
    private CompanyLicenseRefuseEvent() {
        super("license refuse");
    }

    public CompanyLicenseRefuseEvent(Integer companyId, String companyName, String reason, String phone) {
        this();
        this.companyId = companyId;
        this.companyName = companyName;
        this.reason = reason;
        this.phone = phone;
    }

    private Integer companyId;
    private String companyName;
    private String reason;
    private String phone;
}
